package org.vestbjergbyggecenter.Model;

public class Category {
	public String title;
	public double discount;
	
	/**
	 * @param title
	 * @param newDiscount
	 */
	public Category(String title, double newDiscount) {
		this.title = title;
		this.discount = newDiscount;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the discount
	 */
	public double getDiscount() {
		return discount;
	}

	/**
	 * @param newDiscount the discount to set
	 */
	public void setDiscount(double newDiscount) {
		this.discount = newDiscount;
	}
	
	public void print()
	{
		System.out.println("Title of category: " + getTitle() + "  Discount: " + getDiscount());
	}
}
